package com.example.demo;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author gxing
 * @desc TODO
 * @date 2023/8/17
 */
@Data
public class OrgDataPermission {

    private String orgCode;
    private List<DeptDataPermission> deptList;

    public OrgDataPermission() {
    }

    public OrgDataPermission(String orgCode, List<DeptDataPermission> deptList) {
        this.orgCode = orgCode;
        this.deptList = deptList;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public List<DeptDataPermission> getDeptList() {
        return deptList;
    }

    public void setDeptList(List<DeptDataPermission> deptList) {
        this.deptList = deptList;
    }

    @Override
    public String toString() {
        return "OrgDataPermission{" +
                "orgCode='" + orgCode + '\'' +
                ", deptList=" + deptList +
                '}';
    }
}
